package net.tv90.auth.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true, value = "user")
public class User {

    @TableId(value = "account_id", type = IdType.INPUT)
    @TableField("account_id")
    Long id;

    String nickname;

    String avatar;

    String gender;

    Integer role;

    /**
     * 学号/工号
     */
    String code;

    LocalDateTime lastUpdateTime;
}
